package com.azure.bigstore.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by liuhuaibin on 2018/1/21.
 */
@Controller
public class HelloController {
    @RequestMapping(value = "/mycart")
    public String doLogin(){
        System.out.println("mycart");
        return "/mycart";
    }
    @RequestMapping("/root")
    public String toRoot(Map<String,Object> map){
        System.out.println("/////////");
        map.put("hello","this is hello");
        return "/index";
    }
}
